package com.bdqn.service.impl;

import com.bdqn.entity.AddressBook;
import com.bdqn.mapper.AddressBookMapper;
import com.bdqn.service.AddressBookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 地址管理 服务实现类
 * </p>
 *
 * @author hunter
 * @since 2022-06-11
 */
@Service
public class AddressBookServiceImpl extends ServiceImpl<AddressBookMapper, AddressBook> implements AddressBookService {
 @Autowired
 private AddressBookMapper addressBookMapper;
    @Override
    public List<AddressBook> selectByUserId(String phone) {
        return addressBookMapper.selectByUserId(phone);
    }

}
